package textprocessing.nlpanalysis.context_annotate;

/**
 * Created by common on 2017/4/1.
 */
public class ParagraphSplitor {

    /*
    Used to Paragraph Text
     */




    public static String[] articleToSentences(String article){
        String[] sentences = article.split("\\.|\\?|!|:|\\n");
        for(String sent: sentences) sent += ".";
        return sentences;
    }




    public static void main(String[] args){

        String article = "I have a question. What's your name? Please tell me! Thank you very much.";

        String[] sentences = articleToSentences( article );

        for(String s : sentences){

            System.out.println("sentence = " + s);

        }

    }


}
